<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2 required">{:__('Name')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-name" class="form-control" data-rule="required" required name="row[name]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2 required">{:__('Professional')}:</label>
        <div class="col-xs-12 col-sm-8">
            <!-- <select id="c-education" data-rule="required" class="form-control selectpicker" data-live-search="true" multiple name="row[professional][]">
                {foreach name="professional" item="vo"}
                <option value="{$vo.title}" {in name="key" value="" }selected{/in}>{$vo.title}</option>
                {/foreach}
            </select> -->
            <input id="c-class_id" onchange="aaa(this)" data-multiple="true"  data-primary-key="name" placeholder="请选择专家分类"  k_field="major" data-source="expert/searchProfessional" class="form-control selectpage majormajor" name="row[professional][]"   >
        </div>

    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Position')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-name" class="form-control"   required name="row[position]" type="text" value="">
            <!-- <select id="c-education" data-rule="required" class="form-control selectpicker" name="row[position]">
                {foreach name="position" item="vo"}
                <option value="{$vo.title}" {in name="key" value="" }selected{/in}>{$vo.title}</option>
                {/foreach}
            </select> -->
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2 required">专家库:</label>
        <div class="col-xs-12 col-sm-8">
            <select id="c-education" data-rule="required" class="form-control selectpicker" name="row[expert_data]">
                {foreach name="expert_data" item="vo"}
                <option value="{$vo.title}" {in name="key" value="" }selected{/in}>{$vo.title}</option>
                {/foreach}
            </select>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Work_unit')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-work_unit" class="form-control" name="row[work_unit]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2 required">{:__('Contact_tel')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-contact_tel" class="form-control" data-rule="required;mobile" maxlength="11" type="number"
                name="row[contact_tel]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Address')}:</label>
        <div class="col-xs-12 col-sm-8"> 
            <div class="form-inline" data-toggle="cxselect"
                data-url="/assets/libs/fastadmin-cxselect/js/cityData.min.json" data-selects="province,city,area"
                data-json-space="" data-json-name="n" data-json-value="">
                <select class="province form-control" name="row[province]"  data-first-title="选择省">
                    <option value="">请选择</option>
                    <option value="陕西省" selected="">陕西省</option>
                </select>
                <select class="city form-control" name="row[city]" data-first-title="选择市">
                    <option value="">请选择</option> 
                </select>
                <select class="area form-control" name="row[area]" data-first-title="选择地区">
                    <option value="">请选择</option> 
                </select>
            </div> 
        </div> 
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2 required">{:__('Sex')}:</label>
        <div class="col-xs-12 col-sm-8">
            {:build_radios('row[sex]', ['1'=>"男", '2'=>"女"])}
        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
        </div>
    </div>
</form>